*{
    padding:0;
    margin: 0;
}
html{
    font-family: "微软雅黑";
}
body{
    font-size:14px;
    color:#555;
}
dl, dt, dd, ul, ol, li, pre, form, fieldset, input, textarea, p, blockquote, th, td{
    list-style: none;
}
a{
    text-decoration: none;
    color:#555;
}
a:hover{
    color: red;
    text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    line-height: 1.2;
}
.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}
.clearfix:after {
    clear: both;
}

.Main{
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9996;
    display: none;
    .login{
        width: 400px;
        height: 500px;
        background: white;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-top: -250px;
        margin-left: -200px;
        transition: all 1.5s linear;
        .change{
            color: white;
            font-size: 20px;
            font-family: "微软雅黑";
            background: black;
            border-radius: 5px;
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
        }
        .Close{
            color: white;
            font-size: 20px;
            font-family: "微软雅黑";
            background: black;
            border-radius: 5px;
            position: absolute;
            cursor: pointer;
            top: 0;
            right: 0;
        }
        h1{
            text-align: center;
            margin-top: 50%;
        }
    }
}

//header部分
#header {
    position: fixed;
    z-index: 9995;
    width: 100%;
    left: 0;
    top: 0;
    height: 50px;
    margin: 0 auto;
    background: #333;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
    transform: translateY(0px);
    .content {
        width: 1260px;
        max-width: 1260px;
        margin: 0 auto;
        .nav-list {
            position: relative;
            height: 50px;
            font-family: "微软雅黑";
            z-index: 1;
            font-size: 14px;
            text-align: justify;
            text-justify: distribute-all-lines;
            li {
                ul{
                    li{
                        margin-left: 0;
                        width: 100%;
                        &:hover{
                            background:black;
                        }
                    }
                }
                height: 50px;
                margin-left: 40px;
                display: inline-block;
                vertical-align: top;
                position: relative;
                color: rgba(255, 255, 255, 0.5);
                a {
                    height: 50px;
                    padding: 0 10px;
                    display: block;
                    line-height: 50px;
                    color: rgba(255, 255, 255, 0.8);
                    transition: all 0.7s;
                    &:hover {
                        text-decoration: none;
                        opacity: 0.5;
                    }
                }
                .sub-menu {
                    position: absolute;
                    background: #333;
                    background-color: rgba(0, 0, 0, 0.5);
                    left: -26px;
                    top: 50px;
                    width: 100px;
                    text-align: center;
                    font-size: 12px;
                    display: none;
                }
                &:hover .sub-menu{
                    display: block;
                }
            }
            #logo {
                background: url(../images/logo.png) no-repeat;
                background-size: 100% 100%;
                width: 150px;
                margin-left: 0;
                margin-right: 40px;
            }
            #login-reg {
                float: right;
                margin-left: 5px;
                font-size: 12px;
                padding: 9px 0;
                height: 32px;
                div {
                    float: left;
                    padding-left: 1px;
                    a {
                        display: block;
                        background-color: #757575;
                        background-color: rgba(255, 255, 255, 0.2);
                        height: 32px;
                        padding: 0 15px;
                        line-height: 32px;
                        overflow: hidden;
                        cursor: pointer;
                    }
                    .user-signin {
                        border-radius: 4px 0 0 4px;
                    }
                }
            }
            #search {
                float: right;
                margin-left: 20%;
                padding: 0 5px;
                .search-input-wrapper {
                    padding: 0;
                    border-radius: 4px;
                    width: 32px;
                    height: 32px;
                    margin-top: 9px;
                    position: relative;
                    transition: all 0.3s ease-out;
                    .search-icon {
                        position: absolute;
                        background-color: transparent;
                        left: 0;
                        top: 0;
                        width: 32px;
                        height: 32px;
                        display: block;
                        text-align: center;
                        line-height: 32px;
                        border: 0 none;
                        box-shadow: none;
                        cursor: pointer;
                        border-radius: 2px;
                        .fa {
                            color: rgba(255, 255, 255, 0.7);
                            font-size: 15px;
                        }
                    }
                }
            }
        }
        .nav-menu {
            display: none;
            .nav-toggle {
                height: 50px;
                width: 50px;
                line-height: 50px;
                font-size: 16px;
                float: left;
                color: rgba(255, 255, 255, 0.85);
                margin-left: -10px;
                text-align: center;
                .fa {
                    display: inline-block;
                    position: relative;
                    top: 3px;
                    left: 18px;
                    cursor: pointer;
                    span {
                        display: block;
                        margin: 3px;
                        margin-left: 6px;
                        width: 15px;
                        height: 2px;
                        background: white;
                    }
                }
            }
            .signin-toggle {
                height: 50px;
                width: 50px;
                line-height: 50px;
                font-size: 16px;
                float: right;
                color: rgba(255, 255, 255, 0.85);
                cursor: pointer;
                margin-right: 0;
                text-align: center;
            }
            .home-logo{
                a {
                    background-image: url(../images/home-logo.png);
                    background-repeat: no-repeat;
                    display: block;
                    width: 40px;
                    height: 40px;
                    position: absolute;
                    left: 50%;
                    margin-left: -20px;
                    top: 5px;
                    background-size: 100% 100%;
                    .text-replace {
                        position: absolute;
                        height: 1px;
                        width: 1px;
                        overflow: hidden;
                        clip: rect(1px, 1px, 1px, 1px);
                    }
                }
            }
        }
    }
}

//footer部分
#footer {
    background-color: #222;
    color: #999;
    position: relative;
    .content {
        width: 94%;
        max-width: 1260px;
        margin: 0 auto;
        .inner {
            height: auto;
            overflow: hidden;
            color: rgba(255,255,255,0.25);
            padding-top: 30px;
            .group {
                float: left;
                width: 10%;
                box-sizing: border-box;
                padding: 0 30px 20px 0;
                font-size: 12px;
                font-family: "微软雅黑";
                h3 {
                    font-size: 14px;
                    margin-bottom: 10px;
                    color: rgba(255,255,255,0.65);
                }
                li {
                    margin-bottom: 5px;
                    display: block;
                }
                a {
                    color: rgba(255,255,255,0.35);
                    transition: all 0.5s;
                }
                &:not(.social) a:hover {
                    color: rgba(255,255,255,0.6);
                }
                .social-email {
                    margin-top: 10px;
                    .email {
                        width: 167px;
                        height: 28px;
                        border: 1px solid #323232;
                        border-radius: 2px;
                        background-color: #1c1c1c;
                        margin: 0 3px 0 0;
                        padding: 5px;
                        color: rgba(255,255,255,0.9);
                    }
                    .submit {
                        color: rgba(255,255,255,0.7);
                        border: 1px solid rgba(255,255,255,0.1);
                        background-color: #00a398;
                        -webkit-box-shadow: none;
                        box-shadow: none;
                        height: 29px;
                        border-radius: 2px;
                        padding: 0 10px;
                        cursor: pointer;
                    }
                }
                .social-icon {
                    margin-top: 20px;
                    a {
                        position: relative;
                        margin-right: 5px;
                        display: inline-block;
                        text-align: center;
                        background-color: rgba(0,0,0,0.2);
                        width: 30px;
                        height: 30px;
                        border-radius: 5px;
                        line-height: 30px;
                        display: inline-block;
                        font-size: 14px;
                        color: rgba(255,255,255,0.5);
                        text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
                        transition: all 0.3s;
                        &:hover{
                            background-color: #5CB85C;
                        }
                    }
                }
            }
            #describe {
                width: 40%;
                padding-right: 70px;
                .describe-text {
                    letter-spacing: 1px;
                    line-height: 20px;
                }
            }
            #social {
                width: 30%;
            }
        }
        .site-info {
            padding-bottom: 10px;
            .copyright {
                border-top: 1px solid rgba(255,255,255,0.065);
                padding: 15px 0;
            }
        }
    }
}
#suspend {
    position: fixed;
    right: 20px;
    transition: all 0.3s ease-out;
    z-index: 3;
    a {
        background-color: rgba(0,0,0,0.75);
        color: #FFF;
        font-size: 20px;
        width: 40px;
        height: 40px;
        text-align: center;
        display: block;
        border-radius: 2px;
        transition: all 0.4s;
        &:hover {
            background-color: #00c3b6;
            opacity: 0.7;
        }
        i {
            margin-top: 10px;
        }
    }
}


@media only screen and (min-width: 768px) and (max-width: 1024px) {
    /*header*/
    #header .content {
        width: 100%;
        .nav-menu {
            display: block;
        }
        .nav-list {
            display: none;
            height: auto;
            overflow: inherit;
            top: 40px;
            background-color: #323232;
            li {
                display: block;
                margin-left: 0;
                background-color: #323232;
                text-align: center;
                border-top: 1px solid rgba(255, 255, 255, 0.05);
                height: 50px;
            }
            #logo {
                display: none;
            }
            #login-reg {
                display: none;
            }
            #search {
                float: none;
                margin-left: 0;
                .search-input-wrapper{
                    margin:9px auto;
                }
            }
        }
    } 
}

@media only screen and (min-width: 400px) and (max-width: 768px) {
    /*header*/
    #header .content {
        width: 100%;
        .nav-menu {
            display: block;
        }
        .nav-list {
            display: none;
            height: auto;
            overflow: inherit;
            top: 40px;
            background-color: #323232;
            li {
                display: block;
                margin-left: 0;
                background-color: #323232;
                text-align: center;
                border-top: 1px solid rgba(255, 255, 255, 0.05);
                height: 50px;
            }
            #logo {
                display: none;
            }
            #login-reg {
                display: none;
            }
            #search {
                float: none;
                margin-left: 0;
                .search-input-wrapper{
                    margin:9px auto;
                }
            }
        }
    }
    
    /*footer*/
    #footer{
        .content{
            margin-left: 10px;
            .inner{
                width: 100%;
                padding-top: 0;
                #describe{
                    width: 100%;
                    padding-right: 10px;
                }
                .group{
                    float: none;
                    width: 100%;
                    height: auto;
                    padding-bottom: 0;
                    .menu-about-container{
                        li{
                            display: inline-block;
                            margin: 5px
                        }
                    }
                }
                #social{
                    width: 100%;
                }
            }
        }
    }
    .copyright{
        text-align: center;
    }
}

@media only screen and (max-width: 500px) {
     /*header*/
    #header .content {
        width: 100%;
        .nav-menu {
            display: block;
        }
        .nav-list {
            display: none;
            height: auto;
            overflow: inherit;
            top: 40px;
            background-color: #323232;
            li {
                display: block;
                margin-left: 0;
                background-color: #323232;
                text-align: center;
                border-top: 1px solid rgba(255, 255, 255, 0.05);
                height: 50px;
            }
            #logo {
                display: none;
            }
            #login-reg {
                display: none;
            }
            #search {
                float: none;
                margin-left: 0;
                .search-input-wrapper{
                    margin:9px auto;
                }
            }
        }
    }
    
    #footer{
        .content{
            margin-left: 10px;
            .inner{
                display: none;
            }
        }
    }
    .copyright{
        text-align: center;
    }
}